<%@page import="com.wanmait.cookbook.vo.IngredientsTypeSecond"%>
<%@page import="com.wanmait.cookbook.vo.Userinfo"%>
<%@page import="org.eclipse.jdt.internal.compiler.ast.ForeachStatement"%>
<%@page import="org.apache.jasper.tagplugins.jstl.core.ForEach"%>
<%@page import="com.wanmait.cookbook.vo.Pager"%>
<%@page import="com.wanmait.cookbook.vo.Works"%>
<%@page import="com.wanmait.cookbook.vo.Cookbook"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html>
<!-- saved from url=(0056)https://www.douguo.com/caipu/%E5%AE%B6%E5%B8%B8%E8%8F%9C -->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>家常菜的做法大全_家常菜的家常做法_家常菜怎么做好吃_豆果美食</title>
<link rel="icon"
	href="https://cp1.douguo.com/static/nweb/images/favicon.ico?v=1912"
	type="image/x-icon">
<link rel="stylesheet"
	href="<%=path%>/static/cookbookShow_files/main.css">
<link rel="stylesheet"
	href="<%=path%>/static/cookbookShow_files/search.css">
<script src="<%=path%>/static/cookbookShow_files/hm.js.下载"></script>
<script src="<%=path%>/static/cookbookShow_files/jquery.js.下载"></script>
<script data-ad-client="ca-pub-6608973961595981" async=""
	src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?f4fa5d56f272ae0a0777feec2184a97f";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
    </script>
<style>
.one-pan-tip {
	cursor: pointer;
}

.one-pan-tip::before {
	background-position: center;
	background-size: 100% 100%;
	background-repeat: no-repeat;
	box-sizing: border-box;
	width: 1em;
	height: 1em;
	margin: 0 1px .15em 1px;
	vertical-align: middle;
	display: inline-block;
}

.one-pan-tip-success::before {
	content: '';
	background-image:
		url()
}

.one-pan-tip-error {
	text-decoration: line-through;
}

.one-pan-tip-error::before {
	content: '';
	background-image:
		url()
}

.one-pan-tip-other::before {
	content: '';
	background-image:
		url()
}

.one-pan-tip-lock::before {
	content: '';
	background-image:
		url()
}
</style>
<meta name="ljjc::status" content="on">
</head>
<body>
	<jsp:include page="/inc/head.jsp"></jsp:include>

	<div class="wrap">
		<div id="content" class="clearfix">
			<div class="type-tab">
				<%
					String name = (String) request.getAttribute("name");
				%>
			</div>
			<div id="left">
				<div class="title-head">
					<h1 class="recipename">
						"<%=name%>"的相关信息
					</h1>
				</div>
				<div class="mt25" id="showList">
					<!--菜谱的一个展示  -->
					<ul class="cook-list" id="count">
						<!-- 进入页面默认加载 -->


						<%
							List<Cookbook> foodToCookbooks = (List<Cookbook>) request.getAttribute("foodToCookbooks");
							if (foodToCookbooks.size() == 0) {
						%>
						<span>没有相关菜谱</span>
						<%
							} else {
								List<Integer> foodToCookbookCount = (List<Integer>) request.getAttribute("foodToCookCounts");
								for (int i = 0; i < foodToCookbooks.size(); i++) {
						%>

						<li class="clearfix"><a class="cook-img"
							href="https://www.douguo.com/cookbook/1605903.html"
							style="background-size: cover; position: relative;"
							title="<%=foodToCookbooks.get(i).getInfo()%>" target="_blank"
							one-link-mark="yes"> <img
								src="<%=path%>/static/image/<%=foodToCookbooks.get(i).getPic()%>"
								width="180" height="125"
								title="<%=foodToCookbooks.get(i).getInfo()%>">
						</a>
							<div class="cook-info">
								<a class="cookname text-lips "
									href="https://www.douguo.com/cookbook/1605903.html"
									target="_blank" one-link-mark="yes"><%=foodToCookbooks.get(i).getTitle()%></a>
								<!-- <p class="major">嫩豆腐,里脊肉,蒜,葱,油,老抽,盐,水,水淀粉 </p> -->
								<span><%=foodToCookbooks.get(i).getInfo()%></span>
								<div class="score">
								<!-- 收藏开始 -->
									<span id="shoucangzi">收藏</span> 
									<img width="20" id="shoucang"src="<%=path%>/img/shoucangkongxin.jpg">
								<!-- 收藏结束 -->
								</div>


								<div class="aut-num clearfix text-lips ">
									<a class="headicon"
										href="https://www.douguo.com/u/u10870849966387.html"
										target="_blank" one-link-mark="yes"> <img
										src="<%=path%>/static/image/<%=foodToCookbooks.get(i).getUserinfo().getAvatar()%>"><%=foodToCookbooks.get(i).getUserinfo().getName()%>
									</a> <a class="proicon" href="https://www.douguo.com/user/prodesc"
										target="_blank" one-link-mark="yes"> </a>
								</div>
							</div></li>
						<%
							}
							}
						%>


					</ul>

					<!--一个菜谱展示结束  -->


				</div>
			</div>
		</div>
		<!-- 面包屑导航 -->

	</div>

	</div>
	</div>
	<jsp:include page="/inc/foot.jsp"></jsp:include>
	<script src="<%=path%>/static/cookbookShow_files/tip.js.下载"></script>
	<script src="<%=path%>/static/cookbookShow_files/search.js.下载"></script>
	<script src="<%=path%>/static/cookbookShow_files/main.js.下载"></script>
	<!-- <script src='https://s13.cnzz.com/c.php?id=30029854' language='JavaScript' charset='gb2312'></script> -->

	<style>
#right {
	float: right;
}

.mb25 {
	padding-top: 20px;
}

.recipename {
	font-size: 18px;
	font-weight: bold;
}

.searchall {
	font-size: 24px;
}

.small_search {
	display: inline-block;
}
</style>
</body>
</html>
<!-- 收藏事件开始 -->
<script type="text/javascript">
	$(function(){
		$("#shoucang").click(function(){
			var shoucangsrc=$("#shoucang").attr("src");
			if(shoucangsrc=="<%=path%>/img/shoucangkongxin.jpg"){
				$("#shoucang").attr("src","<%=path%>/img/shoucangshixin.jpg");
				$("#shoucangzi").html("已收藏")
			}
			else{
				$("#shoucang").attr("src","<%=path%>/img/shoucangkongxin.jpg");
					$("#shoucangzi").html("收藏")
				}
			});
	});
</script>
<!-- 收藏事件结束 -->